﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TP3Master.master" AutoEventWireup="true" CodeFile="frmConsultaCancionero.aspx.cs" Inherits="Karaoke_Gestion_frmActivarServicio" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">


    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="height:500px">
    <table width="60%" align="center"  cellpadding="4" cellspacing="1">
     <tr>
            <td align="left" class="filaCab">
                <asp:Label ID="lblTituloProg" runat="server" Text="Consulta de Canciones" Font-Size="Larger"></asp:Label>
            </td>
        </tr>
     </table>

      <table width="40%" align="center"  cellpadding="4" cellspacing="1">
            <BR />
            <BR />
            <tr>
                <td style="width: 200px; height: 21px">
                    <asp:Label ID="lblDes" runat="server" Text="IDIOMA" Font-Size="X-Small"></asp:Label></td>
                <td style="width: 55px; height: 21px">
                    <asp:DropDownList ID="dwlIdioma" runat="server" Width="227px" Font-Size="X-Small" >
                    </asp:DropDownList></td>

            </tr>
            <tr>
                <td style="width: 200px; height: 21px">
                    <asp:Label ID="lblOfi" runat="server" Text="CATEGORIA" Font-Size="X-Small"></asp:Label></td>
                <td style="width: 126px; height: 21px">
                    <asp:DropDownList ID="dwlGenero" runat="server" Width="227px" Font-Size="X-Small" >
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 200px; height: 28px">
                    <asp:Label ID="lblDir" runat="server" Text="CANTANTE" Font-Size="X-Small"></asp:Label></td>
                <td style="width: 55px; height: 28px">
                    <asp:TextBox ID="txtCantante" runat="server" Width="224px"  Rows="3"></asp:TextBox>
                 </td>
            </tr>
            <tr>
                <td style="width: 250px; height: 28px">
                    <asp:Label ID="lblSub" runat="server" Text="TITULO" Font-Size="X-Small"></asp:Label></td>
                <td style="width: 126px; height: 28px">
                    <asp:TextBox ID="txtTitulo" runat="server" Width="224px"  Rows="3"></asp:TextBox>
                 </td>
            </tr>
             <tr>
                 <td>
                </td>
                <td align="left">
                    <asp:Button ID="btnConsultar" runat="server" Text="Consultar Canción" 
                        onclick="btnConsultar_Click" />
                </td>
               </tr>
        </table>

         <table width="60%" align="center"  cellpadding="4" cellspacing="1">
        <tr>
            <td>
                <asp:GridView ID="grvCanciones" runat="server"
                AlternatingRowStyle-CssClass="altrowstyle" 
                AllowPaging="True" 
                AutoGenerateColumns="False" 
                PageSize="5" 
                AllowSorting = "true"  
                Width="100%" 
                Font-Names="Arial" 
                Font-Size ="XX-Small" 
                BorderStyle="Inset"
                CellPadding="3" 
                CellSpacing="1" 
                GridLines="None" 
                BorderColor="Green"
                PagerSettings-PageButtonCount="10" 
                OnPageIndexChanging="Nombre_GridView_PageIndexChanging"
				onselectedindexchanged="grvCanciones_SelectedIndexChanged1"
				>
				<SelectedRowStyle  BorderStyle="Solid" Font-Bold="True" />
				<HeaderStyle Font-Bold="True"  />
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="idCancion" HeaderText="Codigo" />
                        <asp:BoundField DataField="titulo" HeaderText="Titulo" />
                        <asp:BoundField DataField="cantante" HeaderText="Cantante" />
                        <asp:BoundField DataField="categoria" HeaderText="Categoria" />
                        <asp:BoundField DataField="idioma" HeaderText="Idioma" />
                        <asp:BoundField DataField="tipo" HeaderText="Tipo" />
                        <asp:TemplateField HeaderText="Seleccionar">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkSelect" runat="server" />
                            </ItemTemplate>
                            <HeaderTemplate>
                            </HeaderTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerTemplate>
                        &nbsp; &nbsp;
                    Pagina:
                    	<%=grvCanciones.PageIndex + 1%>
                     de
                		<%=grvCanciones.PageCount%>
                    &nbsp;
                
                    <asp:Button ID="Button4" runat="server" CommandName="Page" ToolTip="Prim. Pag"  CommandArgument="First" CssClass="pagfirst" Visible="<%# grvCanciones.PageIndex > 0%>"/>                    
                    <asp:Button ID="Button1" runat="server" CommandName="Page" ToolTip="Pág. anterior"  CommandArgument="Prev" CssClass="pagprev" Visible="<%# grvCanciones.PageIndex > 0%>"/>
                    <asp:Button ID="Button2" runat="server" CommandName="Page" ToolTip="Sig. página" CommandArgument="Next" CssClass="pagnext" Visible="<%# Convert.ToBoolean(grvCanciones.PageIndex + 1 - grvCanciones.PageCount) %>"  />                    
                    <asp:Button ID="Button3" runat="server" CommandName="Page" ToolTip="Últ. Pag"  CommandArgument="Last" CssClass="paglast" Visible="<%# Convert.ToBoolean(grvCanciones.PageIndex + 1 - grvCanciones.PageCount) %>" />                    

                </PagerTemplate>
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    <SortedAscendingCellStyle BackColor="#FDF5AC" />
                    <SortedAscendingHeaderStyle BackColor="#4D0000" />
                    <SortedDescendingCellStyle BackColor="#FCF6C0" />
                    <SortedDescendingHeaderStyle BackColor="#820000" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSeleccionar" runat="server" Text="Seleccionar" Height="27px" 
                    Width="156px" onclick="btnSeleccionar_Click" />
            </td>
        </tr>
    </table>
</div>
</asp:Content>

